<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
	<form action="search_courses.html" method="post">
	<table cellpadding="0" width="690" cellspacing="0" border="0" align="center">
		<tr><td height="10"> </td></tr>
				<tr><td height="5" bgcolor="" ></td></tr>
				<tr valign="top" bgcolor="">
					<td align="left" height="15" style="padding-left: 5px; padding-right:5px;font-size: 13px">
							<a href="view_wall.html?wall_id=${walls[0].WALL_ID}"><b><c:out value="${walls[0].TITLE}"></c:out>&nbsp;</b></a><b style="font-size: 10px;color: #444;">(245 Posts)</b>
					</td>
				</tr>
				<tr><td height="5" bgcolor="" ></td></tr>
				<tr>
					<td align="left" bgcolor="" style="padding-left: 10px; padding-right:5px;">
						<c:out value="${walls[0].PURPOSE}"/>
					</td>
				</tr>
				<tr><td height="10" bgcolor="" >&nbsp;</td></tr>
				<c:if test="${fn:length(posts)>0}">
				<c:forEach var="i" begin="0" end="${fn:length(posts)-1}" step="1" varStatus ="status">
					<tr bgcolor="">
						<td align="left" style="padding-left: 30px; padding-right:5px;">
						<a href=""><b><c:out value="${posts[i].ITEM_DESC}"/></b></a>
						</td>
					</tr>
					<tr>
						<td height="10" bgcolor="" style="padding-left: 30px; padding-right:5px;"> 
							<table bgcolor="" cellpadding="0" cellspacing="0" bgcolor="1" width="100%">
								<tr><td height="10" colspan="2"> </td></tr>
								<tr align="left" valign="bottom" style="font-size: 10px;color: #444;padding-left: 10px;">
									<td width="50%">By: <b>Long sopheak</b> - <a href="">View all 24 comments</a></td>
									<td align="right">Posting Date: <b>25/12/2011</b></td>
								</tr>
								<c:if test="${i<fn:length(posts)-1 }">
								<tr><td valign="top" colspan="2"><hr size="1" color="#BBB"></td></tr>
								</c:if>
								<tr><td height="10" colspan="2"> </td></tr>
							</table>
							
						</td>
					</tr>
				</c:forEach>
				</c:if>
		<tr><td height="10" > </td></tr>
		<tr><td>&nbsp;</td></tr>
</table>
</form>
</body>
</html>